<?php defined('SYS_PATH') or die('No direct script access.');

class UserController extends Controller
{
    /**
     * Default MVC
     *
     * URL: http://localhost/user/info/1
     *
     * @return void
     */
    public function infoAction($id)
    {
        $this->view('user', $this->model('user')->select($id));
    }

    /**
     * Use router rule, see configs/routes.inc.php
     *
     * URL: http://localhost/user/1
     *
     * @return void
     */
    public function profileAction($id)
    {
        $this->view('user', $this->model('user')->select($id));
    }

    /**
     * Use standard query string
     *
     * URL: http://localhost/user/show?id=1
     *
     * @return void
     */
    public function showAction()
    {
        $id = $this->input('id');
        $this->view('user', $this->model('user')->select($id));
    }
}

?>